class QuestionListBean {
  int code;
  String message;
  List<Question> result;
  bool success;
  int timestamp;

  QuestionListBean(
      {this.code, this.message, this.result, this.success, this.timestamp});

  QuestionListBean.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    message = json['message'];
    if (json['result'] != null) {
      result = new List<Question>();
      json['result'].forEach((v) {
        result.add(new Question.fromJson(v));
      });
    }
    success = json['success'];
    timestamp = json['timestamp'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['code'] = this.code;
    data['message'] = this.message;
    if (this.result != null) {
      data['result'] = this.result.map((v) => v.toJson()).toList();
    }
    data['success'] = this.success;
    data['timestamp'] = this.timestamp;
    return data;
  }
}

class Question {
  String allocatedDate;
  var areaId;
  String areaName;
  var checkId;
  String checkName;
  String checkUser;
  String checkUserName;
  String createTime;
  var deviceId;
  String deviceName;
  var id;
  var inspectorId;
  var isAllocated;
  var isAllocatedStr;
  var lat;
  var lon;
  var projectId;
  String projectName;
  var projectResultId;
  String projectResultName;
  String questionAddress;
  String questionDescription;
  String questionStr;
  var questionType;
  String sitePhotosUrl;
  String solveDate;
  String solveResults;
  String solveUser;
  String solveUserName;
  var status;
  String statusStr;
  String videoUrl;
  String voiceUrl;

  Question(
      {this.allocatedDate,
        this.areaId,
        this.areaName,
        this.checkId,
        this.checkName,
        this.checkUser,
        this.checkUserName,
        this.createTime,
        this.deviceId,
        this.deviceName,
        this.id,
        this.inspectorId,
        this.isAllocated,
        this.isAllocatedStr,
        this.lat,
        this.lon,
        this.projectId,
        this.projectName,
        this.projectResultId,
        this.projectResultName,
        this.questionAddress,
        this.questionDescription,
        this.questionStr,
        this.questionType,
        this.sitePhotosUrl,
        this.solveDate,
        this.solveResults,
        this.solveUser,
        this.solveUserName,
        this.status,
        this.statusStr,
        this.videoUrl,
        this.voiceUrl});

  Question.fromJson(Map<String, dynamic> json) {
    allocatedDate = json['allocatedDate'];
    areaId = json['areaId'];
    areaName = json['areaName'];
    checkId = json['checkId'];
    checkName = json['checkName'];
    checkUser = json['checkUser'];
    checkUserName = json['checkUserName'];
    createTime = json['createTime'];
    deviceId = json['deviceId'];
    deviceName = json['deviceName'];
    id = json['id'];
    inspectorId = json['inspectorId'];
    isAllocated = json['isAllocated'];
    isAllocatedStr = json['isAllocatedStr'];
    lat = json['lat'];
    lon = json['lon'];
    projectId = json['projectId'];
    projectName = json['projectName'];
    projectResultId = json['projectResultId'];
    projectResultName = json['projectResultName'];
    questionAddress = json['questionAddress'];
    questionDescription = json['questionDescription'];
    questionStr = json['questionStr'];
    questionType = json['questionType'];
    sitePhotosUrl = json['sitePhotosUrl'];
    solveDate = json['solveDate'];
    solveResults = json['solveResults'];
    solveUser = json['solveUser'];
    solveUserName = json['solveUserName'];
    status = json['status'];
    statusStr = json['statusStr'];
    videoUrl = json['videoUrl'];
    voiceUrl = json['voiceUrl'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['allocatedDate'] = this.allocatedDate;
    data['areaId'] = this.areaId;
    data['areaName'] = this.areaName;
    data['checkId'] = this.checkId;
    data['checkName'] = this.checkName;
    data['checkUser'] = this.checkUser;
    data['checkUserName'] = this.checkUserName;
    data['createTime'] = this.createTime;
    data['deviceId'] = this.deviceId;
    data['deviceName'] = this.deviceName;
    data['id'] = this.id;
    data['inspectorId'] = this.inspectorId;
    data['isAllocated'] = this.isAllocated;
    data['isAllocatedStr'] = this.isAllocatedStr;
    data['lat'] = this.lat;
    data['lon'] = this.lon;
    data['projectId'] = this.projectId;
    data['projectName'] = this.projectName;
    data['projectResultId'] = this.projectResultId;
    data['projectResultName'] = this.projectResultName;
    data['questionAddress'] = this.questionAddress;
    data['questionDescription'] = this.questionDescription;
    data['questionStr'] = this.questionStr;
    data['questionType'] = this.questionType;
    data['sitePhotosUrl'] = this.sitePhotosUrl;
    data['solveDate'] = this.solveDate;
    data['solveResults'] = this.solveResults;
    data['solveUser'] = this.solveUser;
    data['solveUserName'] = this.solveUserName;
    data['status'] = this.status;
    data['statusStr'] = this.statusStr;
    data['videoUrl'] = this.videoUrl;
    data['voiceUrl'] = this.voiceUrl;
    return data;
  }
}
